include_directories (${GTKMM_INCLUDE_DIRS})
link_directories (${GTKMM_LIBRARY_DIRS})

add_library (memchart SHARED
	analyze_graph.cpp
	demangle.cpp
	draw_arrows.cpp
	gtk_data_sink.cpp
	layout_dag.cpp
	layout_generic.cpp
	layout_list.cpp
	layout_tree.cpp
	main_window.cpp
	memory_chart.cpp
	rt_data_source.cpp
	test_data_sink.cpp
	update_boxes.cpp)
target_link_libraries (memchart ${GTKMM_LIBRARIES})
target_link_libraries (memchart LINK_INTERFACE_LIBRARIES "")

install (TARGETS memchart
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION lib
	ARCHIVE DESTINATION lib)
